package tech.aistar.controller.client;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by Administrator on 2019/10/9 0009.
 */
@Controller
@RequestMapping("/exit")
public class ExitController {
    @RequestMapping("/login")
    public String login(HttpSession session, HttpServletRequest request){
        //清空session
        request.getSession().invalidate();

       return "index/index";
    }
}
